package com.designPattern.foctory.factory;

/**
 * 子类去实现父亲工厂的方法
 * @author mxs
 */
public class BadInstanceFactory {//extends InstanceFactory
//    @Override
//    public Instance createInstance(String instanceType) {
//        Instance instance = null;
//        if (instanceType.equals(BadInstance.class.getName())){
//            instance = new BadInstance();
//        }else if (instanceType.equals(WroseInstance.class.getName())){
//            instance = new WroseInstance();
//        }return instance;
//    }
}
